package cn.bdqn.demo;

import org.apache.activemq.command.ActiveMQQueue;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;

import javax.jms.Queue;


@SpringBootApplication
public class App {
    public static void main(String[] args) {
        SpringApplication.run(App.class,args);
    }

    /**
     * 创建订单消息队列
     * @return
     */
    @Bean
    Queue orderQueue() {
        return new ActiveMQQueue("ORDER_QUEUE");
    }

}
